package com.tanhua.dubbo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.model.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    //根据用户id修改手机号码
    @Update("update tb_user set mobile=#{mobile} where id = #{id};")
    void updatePhone(@Param("mobile") String phone, @Param("id") Long userId);
}